FROM alpine:latest


WORKDIR /root
COPY . .
# 删除旧的
RUN rm -rf workspace
# 写入新的源地址
RUN cat <<EOF > /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware
deb http://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware
deb http://mirrors.aliyun.com/debian/ bookworm-backports main contrib non-free non-free-firmware
deb http://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free non-free-firmware
EOF



# 切换到新创建的工作区目录
WORKDIR /root/workspace
# 暴露端口
EXPOSE 8080
# 启动应用
CMD ["/bin/bash"]
